require("stream-browserify");
import { VerovioTools } from "./VerovioTools";
/* eslint-disable no-unused-vars */
var _xmlPathMei =
  "https://www.verovio.org/examples/downloads/Schubert_Lindenbaum.mei";
var xmlPath1 =
  "https://opensheetmusicdisplay.github.io/demo/sheets/MuzioClementi_SonatinaOpus36No3_Part1.xml";
var xmlPath2 =
  "https://xtspace.oss-cn-zhangjiakou.aliyuncs.com/1575255861242.xml";
var xmlPath3 = "./data/Mozart_DasVeilchen.xml";

var page = 1;

const verovioTools = new VerovioTools({
  url: xmlPath2,
  layer: "layers",
});

window.selectFile = function (params) {
  verovioTools.selectFile();
};
window.handleNext = function (params) {
  verovioTools.nextPage();
};
window.handlePrev = function (params) {
  verovioTools.prevPage();
};
window.handleSavePDF = function (params) {
  verovioTools.savePDF();
};
